home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1884 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  887 b 

  1. Path: cantaloupe.srv.cs.cmu.edu!bmm
  2. From: bmm+@BMM.PC.CS.CMU.EDU (Bruce Maggs)
  3. Newsgroups: comp.lang.c++
  4. Subject: memory model question
  5. Date: 13 Jan 1996 20:26:00 GMT
  6. Organization: Carnegie-Mellon University, School of Computer Science
  7. Message-ID: <4d94go$sp0@cantaloupe.srv.cs.cmu.edu>
  8. NNTP-Posting-Host: bmm.pc.cs.cmu.edu
  9. Originator: bmm@BMM.PC.CS.CMU.EDU
  10.  
  11.  
  12. Hi,
  13.  
  14. I'm compiling a C program using Borland's C++ for DOS.  It's a large
  15. program, but doesn't use much static memory.  I've selected the
  16. "small" memory model.  The program compiles and runs without any
  17. problems, but the length of the .exe file that the compiler produces
  18. is 148K.  I thought that in the small memory model the length of the
  19. code would be limited to one segment, i.e., 64K.  I'm curious about
  20. what's going on here.  Does the compiler automatically split my code
  21. into two or more segments?
  22.  
  23. Thanks,
  24.  
  25. Bruce Maggs
  26.